/**
 * sysUserRoleService
 * 项目名称:分秒金融
 *
 * @author lunli
 *
 * 功能描述:用户角色管理
 * 
 * 历史版本:2017-03-28 v1.0.0 lunli  创建:
 * 
 */
package com.fmjr.sys.sysUserRole.service;

import com.fmjr.common.base.exception.BusinessException;
import com.fmjr.common.base.util.Pager;
import com.fmjr.sys.sysUserRole.bean.SysUserRole;

import java.util.List;


public interface ISysUserRoleService{

	/**
	 * 根据条件查询用户角色记录
	 * @author lunli
	 * @param  Pager<SysUserRole> pager
	 * @return SysUserRoleList
	 * @throws BusinessException
	 */
	public void selectSysUserRoleList(Pager<SysUserRole> pager) throws BusinessException;
	
	/**
	 * 根据ID查询用户角色记录
	 * @author lunli
	 * @param Long id
	 * @return SysUserRole
	 * @throws BusinessException
	 */
	public SysUserRole selectSysUserRoleById(Long id) throws BusinessException;

	/**
	 *  删除用户角色记录
	 * @author lunli	 
	 * @param id
	 * @throws BusinessException
	 */
	public int deleteSysUserRoleById(Long id) throws BusinessException;
	
	/**
	 * 修改用户角色记录
	 * @author lunli
	 * @param sysUserRole
	 * @throws BusinessException
	 */
	public int updateSysUserRole(SysUserRole sysUserRole) throws BusinessException;

	/**
	 * 新增用户角色记录
	 * @author lunli
	 * @param sysUserRole
	 * @return
	 * @throws BusinessException
	 */
	public int createSysUserRole(SysUserRole sysUserRole) throws BusinessException;
	
	public  List<SysUserRole> selectSysUserRoleList(Long userid);
	
	
	/**
	 * 保存用户角色
	 * @param sysUserRole
	 * @return
	 * @throws BusinessException
	 */
	public int saveSysUserRole(Long userId, SysUserRole sysUserRole) throws BusinessException;
	
	
	

}
